package com.bw.gmallpublisher.mapper;

import com.bw.gmallpublisher.bean.User;
import org.apache.ibatis.annotations.Select;

import java.lang.reflect.Array;
import java.util.List;
import java.util.Map;

public interface UserMapper {

    @Select("select  *   from    user   where   id=${userId} and  sfz=${sfz}")
    public Map   findByIdAndSFZ(Map map);
    @Select("update    user  set   urlImg=${urlImg}  where    id=${userId} and  sfz=${sfz} ")
    public int   updateByIdAndSFZ(Map map);

    //获取所有没有图片的用户
    @Select("select  id  from  user   where  urlImg  is  null")
    public  List<Map>  findAllImgIsNull();




}
